D_AARCH64_LIBMSLOG_LIBS :=`pkg-config --libs libmslog_aarch64`
D_AARCH64_LIBMSLOG_INCLUDES :=`pkg-config --cflags libmslog_aarch64`
D_AARCH64_LIBMSCOMMON_LIBS :=`pkg-config --libs libmscommon_aarch64`
D_AARCH64_LIBMSCOMMON_INCLUDES :=`pkg-config --cflags libmscommon_aarch64`
D_AARCH64_LIBPROTOCOL_LIBS	:=`pkg-config --libs	libmsprotocol_aarch64`
D_AARCH64_LIBPROTOCOL_INCLUDES:=`pkg-config --cflags	libmsprotocol_aarch64`

C_AARCH64_BASE_INCLUDE:=${D_AARCH64_LIBMSLOG_INCLUDES} ${D_AARCH64_LIBMSCOMMON_INCLUDES}	${D_AARCH64_LIBPROTOCOL_INCLUDES} -I../ffmpeg
C_AARCH64_BASE_LIBS   :=${D_AARCH64_LIBMSLOG_LIBS}     ${D_AARCH64_LIBMSCOMMON_LIBS}	${D_AARCH64_LIBPROTOCOL_LIBS}	

libmsbitStream_aarch64_CC=aarch64-linux-gnu-gcc
libmsbitStream_aarch64_SRC=${C_SRC}
libmsbitStream_aarch64_CFLAGS=${C_AARCH64_BASE_INCLUDE} ${C_AARCH64_BASE_LIBS} ${C_INCLUDE} ${CFLAGS_SHARE} 

	
aarch64:libmsbitStream_aarch64 install_aarch64

libmsbitStream_aarch64: 
	mkdir -p $(OUT_LIB)
	mkdir -p $(OUT_INCLUDE)
	cp -fr src/*.h $(OUT_INCLUDE)
	mkdir -p $(OUT_INCLUDE)/flv
	mkdir -p $(OUT_INCLUDE)/mp3
	mkdir -p $(OUT_INCLUDE)/mpeg
	cp -fr src/*.h $(OUT_INCLUDE)
	cp -fr src/flv/flv.h $(OUT_INCLUDE)/flv/
	cp -fr src/mp3/*.h $(OUT_INCLUDE)/mp3/
	cp -fr src/mpeg/*.h $(OUT_INCLUDE)/mpeg/
	$($@_CC)  $($@_SRC)  $($@_CFLAGS)  -o $(OUT_LIB)/$(PROGRAM_NAME).so 

libmsbitStream_aarch64_gdb: 
	mkdir -p $(OUT_LIB)
	mkdir -p $(OUT_INCLUDE)
	cp -fr src/*.h $(OUT_INCLUDE)
	mkdir -p $(OUT_INCLUDE)/flv
	mkdir -p $(OUT_INCLUDE)/mp3
	mkdir -p $(OUT_INCLUDE)/mpeg
	cp -fr src/*.h $(OUT_INCLUDE)
	cp -fr src/flv/flv.h $(OUT_INCLUDE)/flv/
	cp -fr src/mp3/*.h $(OUT_INCLUDE)/mp3/
	cp -fr src/mpeg/*.h $(OUT_INCLUDE)/mpeg/
	$($@_CC)  $($@_SRC)  $($@_CFLAGS)  ${DBG_FLAG} -o $(OUT_LIB)/libmsbitStream_aarch64.so 
	
install_aarch64: 
	mkdir -p  ${prefix_aarch64}/lib/ 
	mkdir -p  ${prefix_aarch64}/include/   
	mkdir -p  ${prefix_aarch64}/lib/pkgconfig/ 
	cp -fr $(OUT_LIB)/$(PROGRAM_NAME).so      ${prefix_aarch64}/lib/     
	cp -fr $(OUT_INCLUDE) 	                  ${prefix_aarch64}/include/	     
	cp -fr platform/$(PROGRAM_NAME)_aarch64.pc         ${prefix_aarch64}/lib/pkgconfig/
	
uninstall_aarch64:
	rm -fr ${prefix_aarch64}/lib/$(PROGRAM_NAME).so 
	rm -fr ${prefix_aarch64}/include/$(PROGRAM_NAME)
	rm -fr ${prefix_aarch64}/lib/pkgconfig/$(PROGRAM_NAME)_aarch64.pc	







